﻿using UnityEngine;
using System.Collections;

public class GUI_MainMenu : MonoBehaviour {

	void OnGUI () {
		// Make a background box
		int wantedwidth1, wantedwidth2;
		int wantedheight;
		wantedheight = Screen.height * 3/5;
		wantedwidth1 = Screen.width *5/7;
		wantedwidth2 = Screen.width * 5 / 7 + 10;

		GUI.Box(new Rect(wantedwidth1,wantedheight,100,90), "Loader Menu");

			// Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
		if(GUI.Button(new Rect(wantedwidth2,wantedheight +25,80,20), "Play")) {
			Application.LoadLevel(1);
		}

		// Make the second button.
		if(GUI.Button(new Rect(wantedwidth2,wantedheight + 50,80,20), "Level 2")) {
			Application.LoadLevel(2);
		}
	}
		
}